package com.zhouxiaoge.facadepattern.maker;

import com.zhouxiaoge.facadepattern.interfaces.Shape;
import com.zhouxiaoge.facadepattern.interfacesImpl.Circle;
import com.zhouxiaoge.facadepattern.interfacesImpl.Rectangle;
import com.zhouxiaoge.facadepattern.interfacesImpl.Square;

public class ShapeMaker {
    private Shape ciccle;
    private Shape rectangle;
    private Shape square;

    public ShapeMaker() {
        ciccle = new Circle();
        rectangle = new Rectangle();
        square = new Square();
    }

    public void drawCircle() {
        ciccle.draw();
    }

    public void drawRectangle() {
        rectangle.draw();
    }

    public void drawSquare() {
        square.draw();
    }
}
